package com.wenjian.mywj.serviceImpl;

import com.wenjian.mywj.dao.UserMapper;
import com.wenjian.mywj.entity.User;
import com.wenjian.mywj.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired//讲Dao注入Service层
    private UserMapper userMapper;

    @Override
    public List<User> getUserInfo() {
        return userMapper.getUserInfo();
    }
}
